package com.module.b;

import javax.servlet.http.HttpSession;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

	
	@GetMapping("/info")
	public String get(HttpSession sesssion){
		System.out.println("User Info : 8082 , " + sesssion.getAttribute("username"));
		return "User Info : 8082";
	}
	
	@GetMapping("/login")
	public String login(HttpSession sesssion){
		sesssion.setAttribute("username", "admin");
		return "login success : 8082";
	}
}
